menuButton
Type
function
Summary
Returns the name of the button that triggered display of a stack menu.
Syntax
the menuButton
menuButton()
Description
Use the menuButton function within a handler in a stack menu to determine which button opened the menu.
Examples
the menuButton
hide the menuButton
Value
Name | Type | Description |
---|---|---|
return | The menuButton function returns the name property of the button. You create a stack menu by laying out the menu items as buttons in a stack window, then setting the menuName property of a button in another stack to the menu stack's name. Clicking the button displays the menu stack as a menu. If you use the same stack menu as the menuName of more than one button, the menuButton tells you which button the user clicked to display the stack menu. For example, suppose you create a stack menu listing all your mailboxes, and display it when clicking both a "Delete" button and an "Open" button. Checking the menuButton from within the stack menu lets you respond appropriately to the user's choosing a mailbox, either deleting it or opening it. |
Related
glossary: handler, stack menu, property, trigger, return
object: stack
property: menuHistory, menuMouseButton, name, menuName
command: option
control structure: function
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
Platforms
desktop
server